package com.mjh.zhujianju.dao.party;

import com.livew.framework.base.dao.BaseMapper;
import com.mjh.zhujianju.model.party.BuildingExamResultEO;
import com.mjh.zhujianju.vo.party.BuildingExamResultVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BuildingExamResultMapper extends BaseMapper<BuildingExamResultEO> {

    /**
     * 根据考试科目分组统计
     * @return
     */
    List<BuildingExamResultVO> selectTotalUsers();

    List<BuildingExamResultEO> selectExamResultsByExamId(@Param("examId") Long examId);

    List<BuildingExamResultEO> selectExamResultsByUserId(@Param("userId") Long userId);
}